package com.k12.app.rpc;

import com.k12.app.model.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "user-service")
public interface UserFeignClient {

    @GetMapping("user/listPermission")
    List<String> getPermissionList(@RequestParam("userId") String userId);

    @GetMapping("user/listRole")
    List<String> getRoleList(@RequestParam("userId") String userId);

    @GetMapping("user/getUserInfo")
    UserDTO getUserInfo();
}
